
import  Router  from '@koa/router';
import apiRoutes from './api.js';
import webRoutes from './web.js';

export default function () {
  const router = new Router();

  // API路由
  router.use( apiRoutes().routes());
  
  // Web路由
  router.use(webRoutes().routes());

  return router;
}
